﻿using System;

namespace ForgeCraft
{
    public class CmdSetHome : Command
    {
        public override string name { get { return "sethome"; } }
        public override string shortcut { get { return "sh"; } }
        public override string type { get { return "general"; } }
        public override bool consoleUsable { get { return false; } }
        public override Permission defaultRank { get { return Permission.Guest; } }
        public CmdSetHome() { }

        public override void Use(Player p, string message)
        {
            p.info.homePos = p.pos;

            p.Message("Home set!");
        }
        public override void Help(Player p)
        {
            p.Message(Color.Aqua + "/sethome " + Color.Help + "- Sets your home position.");
        }
    }
}